package com.hyl.pojo;

import lombok.Data;
import org.apache.log4j.Logger;
import org.springframework.stereotype.Component;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2023/4/26 9:58
 **/
@Data
@Component //<bean id="role" class="com.hyl.pojo.Role"/>
public class Role {
	private Logger logger = Logger.getLogger(User.class);

	private String roleName;
	private Integer flag;

	public Role(){
		this.roleName = "主管";
	}

	public void show(){
		logger.info("显示前。。。。");


		System.out.println("角色名称："+roleName);



		logger.info("显示后。。。。。");
	}
}
